package com.dinzeer.mtrmod.Attribute;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.LivingEntity;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraft.world.item.ItemStack;
import java.util.Objects;

public class attrvoid {
    public  static  void setbaseattributes(LivingEntity entity , String attribute,double amount) {
        Objects.requireNonNull(entity.getAttribute(Objects.requireNonNull(ForgeRegistries.ATTRIBUTES.getValue(new ResourceLocation(attribute)))))
                .setBaseValue(amount);

    }
    public  static  double getattribute(LivingEntity entity , String attribute) {
        return Objects.requireNonNull(entity.getAttribute(Objects.requireNonNull(ForgeRegistries.ATTRIBUTES.getValue(new ResourceLocation(attribute))))).getValue();
    }
    public  class  attrvoidofitem {

        public  void addattmo(){


        }
    }
}
